Learn R Programming

tolBasis (version 1.0)

Serie Coefficents: Serie Coefficients

Description

Returns the coeffients of a time-series.

Usage

"["(s, index)

Arguments

s
a Serie object
index
the index of an element or a valid date in the time-series dating

Value

Returns the coefficient of the selected index or date.

Examples

Run this code
s <- Serie(rnorm(12), Monthly, Date(2015))
s[1]
s[Date(2015)]

Run the code above in your browser using DataLab